﻿package lobby.exchangeddata
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import lobby.events.LobbyEvent;
	
	/**
	 * ...
	 * @author Nguyen Thi Bich Phuong (Daisy)
	 */
	public class WelcomeMessage extends EventDispatcher
	{
		public var strMsg:String;
		
		public function WelcomeMessage()
		{
		}
		
		public function setMessage(strMsg:String)
		{
			
			if (this.strMsg != strMsg)
			{
				this.strMsg = strMsg;
				var e:LobbyEvent = new LobbyEvent(LobbyEvent.UPDATE_WELCOME_MESSAGE, true);
				e.result = strMsg;
				trace("setMessage", this.strMsg)
				dispatchEvent(e);
			}
		}
	
	}

}